﻿-- =========================================================================================================
-- Author:		MICHAEL RITACCO
-- Copyright:	2010 MEKHANO GROUP LLC
-- Version:		08/29/2010 1.0
-- =========================================================================================================
CREATE PROCEDURE [flcr].[api_sla_dml_del]
	 (@SLA_UDT AS [flcr].[SLA_UDT] READONLY)

AS

BEGIN TRY
	BEGIN TRAN;
	
	DELETE	[flcr].[SLA]
	 WHERE	[SLA_ID] IN (SELECT [SLA_ID] FROM @SLA_UDT)

	DELETE	[flcrTM].[SLA]
	 WHERE	[SLA_ID] IN (SELECT [SLA_ID] FROM @SLA_UDT)

	COMMIT TRAN;

END TRY
BEGIN CATCH
	ROLLBACK TRANSACTION;
	EXEC [flcr].[utl_getDBError];
END CATCH
